package com.atguigu.spzx.manager.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * ClassName: SysRoleUserMapper
 * Package: com.atguigu.spzx.manager.mapper
 * Description:
 *
 * @Author 刘强
 * @Create 2024/7/2 20:35
 * @Version 1.0
 */
@Mapper
public interface SysRoleUserMapper {

    /**
     * 根据用户id删除用户分配的角色
     * @param userId
     */
    void deleteRolesByUserId(@Param("userId") Long userId);

    /**
     * 给用户分配角色
     * @param roleId
     * @param userId
     */
    void doAssign(Long roleId, Long userId);

}
